import React from 'react';
import { renderRoutes } from 'react-router-config';
import { LogoHeader } from 'components/Header';
import SearchBox from 'components/SearchBox';
import Nav from './Nav';


import topbanner from '../../asset/images/commercialtenant/topbanner.png';

import styles from './index.module.less';

export default class CommercialTenant extends React.Component {
  render() {
    return <div>
      <LogoHeader moduleName="商户首页" rightContent={<SearchBox />} />
      <div>
        <div className={styles.topbanner}>
          <img src={topbanner} alt="" />
        </div>
        <div className={styles.content}>
          <Nav />
          <div className={styles.clearfix} />
          <div className={styles.contentBox}>
            {renderRoutes(this.props.route.routes)}
          </div>
        </div>
      </div>
    </div>;
  }
}
